<%@ page import="com.sms.business.*"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="spring" uri="/spring"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>My Form</title>
</head>
<body>
	<h1>My Form</h1>

	<c:if test="${ not empty errors.allErrors}">
		<div id="errorFieldSet">
			<fieldset>
				<legend>Errors</legend>
				<c:forEach var="err" items="${errors.allErrors}">
					<spring:message code="${err.code}" arguments="${err.arguments}" />
					<br />
				</c:forEach>
			</fieldset>
		</div>
	</c:if>
	<c:if test="${not empty infoMsg}">
		<div id="infoFieldSet">
			<fieldset>
				<legend>Information</legend>
				<spring:message code="${infoMsg}" />
			</fieldset>
		</div>
	</c:if>
	<c:if test="${not empty errorMsg}">
		<div id="infoFieldSet">
			<fieldset>
				<legend>Error</legend>
				${errorMsg}
			</fieldset>
		</div>
	</c:if>

	<div>
		<form:form method="POST"
			action="demo.htm?method=saveDemo"
			commandName="demoVO">
			<table>
				<tr>

					<td><label>Name:</label></td>
					<td><form:textarea id="name" cols="80" rows="8"
							path="name" /></td>

				</tr>
				<tr>
					<td></td>

					<td></td>
					<td valign="bottom" colspan="1" style="padding-right: 250px;">
						<input type="submit" name='Update' value="Update" class="button" />
					</td>
				</tr>

			</table>
		</form:form>
	</div>
</body>
</html>